const express = require('express');
const { createGroup, addMember, sendMessage, getMessages, getUserGroups } = require('../controllers/groupController');

const router = express.Router();

router.post('/', createGroup);
router.post('/:groupId/members', addMember);
router.post('/:groupId/messages', sendMessage);
router.get('/:groupId/messages', getMessages);
router.get('/users/:userId/groups', getUserGroups);

module.exports = router; 